﻿<%@ Page Title="" Language="C#" MasterPageFile="~/baseExamen.Master" AutoEventWireup="true" CodeBehind="FormularioWeb3.aspx.cs" Inherits="WebApplication2.Formulario_web11" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label2" runat="server" CssClass="style1" 
        style="font-size: xx-large" Text="Nro"></asp:Label>
&nbsp;
    <asp:TextBox ID="txtNroPreg" runat="server" Height="103px" 
        style="text-align: left" Width="727px"></asp:TextBox>
    <br />
    <br />
    <br />
    <asp:Label ID="Label1" runat="server" CssClass="style1" 
        style="font-size: xx-large" Text="Pregunta"></asp:Label>
    <asp:TextBox ID="txtTextoPreg" runat="server" Height="167px" Width="751px"></asp:TextBox>
    <br />
    <asp:Button ID="cargar" runat="server" Height="65px" onclick="cargar_Click" 
        Text="Button" Width="136px" />
    <asp:Label ID="Estado" runat="server"></asp:Label>
    <br />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="idPreg" 
    DataSourceID="ObjectDataSource1">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
                ShowSelectButton="True" />
            <asp:BoundField DataField="idPreg" HeaderText="idPreg" InsertVisible="False" 
                ReadOnly="True" SortExpression="idPreg" />
            <asp:BoundField DataField="valorPreg" HeaderText="valorPreg" 
                SortExpression="valorPreg" />
            <asp:BoundField DataField="tema" HeaderText="tema" SortExpression="tema" />
            <asp:BoundField DataField="respV" HeaderText="respV" SortExpression="respV" />
        </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    DeleteMethod="Delete" InsertMethod="Insert" 
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
    TypeName="WebApplication2.BDTableAdapters.PreguntaTableAdapter" 
    UpdateMethod="Update">
    <DeleteParameters>
        <asp:Parameter Name="Original_idPreg" Type="Int32" />
    </DeleteParameters>
    <UpdateParameters>
        <asp:Parameter Name="valorPreg" Type="String" />
        <asp:Parameter Name="tema" Type="String" />
        <asp:Parameter Name="respV" Type="Int32" />
        <asp:Parameter Name="Original_idPreg" Type="Int32" />
    </UpdateParameters>
    <InsertParameters>
        <asp:Parameter Name="valorPreg" Type="String" />
        <asp:Parameter Name="tema" Type="String" />
        <asp:Parameter Name="respV" Type="Int32" />
    </InsertParameters>
</asp:ObjectDataSource>
    <br />
    <br />
    <br />
    <br />
</asp:Content>
